Repository navigation
Add Aperture memory profiling for VM and native execution - #12
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aperture now records actual runtime allocations instead of returning placeholder snapshots. VM and native reports include allocation sites, allocated/freed/live/peak storage, resize activity, GC statistics, and explicit completion and coverage information. Captures finish before runtime teardown, and retained storage is not classified as a leak.
Adds
aperture memoryfor source, NIL, and native programs, strict saved-report inspection, and VS Code commands for both execution routes. Native source profiling preserves source metadata through NIL assembly and linking. Program output, arguments, stdin, and exit status are preserved; report destinations cannot overwrite existing files. Native parallel worker copies remain isolated from profiling context access.The first milestone measures runtime logical storage, not RSS. VM text/record storage, direct unmanaged libc allocations, and additional worker sessions remain outside the capture. CPU profiling, heap snapshots, allocation lifetimes, and debugger capture remain planned. F53–F54 document accounting boundaries and existing native standard-library gaps.
Validation: all 473 CTests; 960 SDK consumer executions across source and binary libraries; 96 copied-SDK profiling checks; 100 extension unit tests; 81 real VS Code host checks. Native GC stress verifies collection with rooted values preserved. The final SDK and installed VSIX are verified. The final test/documentation commit leaves all 176 SDK production files byte-identical to the copied SDK used for consumer and editor qualification. Evidence is retained locally in
build/aperture-work/.Stacked on #11 (
codex/native-tuple-arrays); the diff contains the Aperture implementation and its regression coverage.